package com.itzhoun;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @author 周楠
 * @Date 2023/03/11/下午 11:36
 */
@Component
public class MyRunner implements ApplicationRunner, CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
        System.out.println("实现自定义run方法");

    }

    @Override
    public void run(ApplicationArguments args) throws Exception {
        System.out.println("实现自定义run方法");

    }
}
